﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Model;
using DAL;

namespace BLL
{
   public class NavBLL
    {
       NavDAL dal = new NavDAL();
               /// <summary>
        /// 显示导航
        /// </summary>
        /// <returns></returns>
       public List<Nav> ShowNav()
       {
           return dal.ShowNav();
       }
       /// <summary>
       /// 删除信息
       /// </summary>
       /// <param name="id"></param>
       /// <returns></returns>
       public int DeleteNav(int id)
       {
           return dal.DeleteNav(id);
       }
       /// <summary>
       /// 添加信息
       /// </summary>
       /// <param name="p"></param>
       /// <returns></returns>
       public int Nav_Add(Model.Nav p)
       {
           return dal.Nav_Add(p);
       }
        /// <summary>
        /// 显示详细信息
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
       public Nav ShowNavX(int id)
       {
           return dal.ShowNavX(id);
       }
       /// <summary>
       /// <summary>
       /// 修改信息
       /// </summary>
       /// <param name="data"></param>
       /// <returns></returns>
       public int UpdateNav(Nav data)
       {
           return dal.UpdateNav(data);
       }
       /// <summary>
       /// 搜索
       /// </summary>
       /// <param name="pp"></param>
       /// <returns></returns>
       public List<Nav> SeleteNav(string name)
       {
           return dal.SeleteNav(name);
       }
    }
}
